package a.f.d;

import a.c.bb;
import a.c.e;
import a.c.k;
import a.c.w;
import a.c.x;
import a.f.o;
import a.f.zc;
import a.i.p;

public class m
  implements u
{
  public static final Object f = "y.layout.hierarchic.AlignmentDrawer.NODE_ALIGNMENT_POINT_DPKEY";
  private u g;
  public static int h;
  
  public m(u paramu)
  {
    if (f.o == 0)
    {
      if (paramu == null) {
        throw new NullPointerException();
      }
      this.g = paramu;
    }
  }
  
  protected void a(o paramo, bb[] paramArrayOfbb)
  {
    int k = f.o;
    int j = f.n;
    double d1 = 0.0D;
    int i = 0;
    label188:
    do
    {
      if (i >= paramArrayOfbb.length) {
        break;
      }
      w localw = paramArrayOfbb[i].l();
      double d2 = 0.0D;
      double d3 = 0.0D;
      double d4 = 1.7976931348623157E+308D;
      double d5 = -1.797693134862316E+308D;
      localw.h();
      double d7;
      double d6;
      do
      {
        do
        {
          if (!localw.e()) {
            break label188;
          }
          e locale1 = localw.d();
          zc localzc = paramo.d(locale1);
          d4 = Math.min(d4, localzc.b());
          d5 = Math.max(d5, localzc.b() + localzc.d());
          d7 = a(locale1);
          d2 = Math.max(d2, localzc.d() * 0.5D + d7);
          d3 = Math.max(d3, localzc.d() * 0.5D - d7);
          localw.f();
          if ((k == 0) && (j != 0)) {
            break;
          }
        } while (j == 0);
        d6 = d2 + d3;
        d7 = d4 + d1 + d2;
      } while (k != 0);
      localw.h();
      do
      {
        if (!localw.e()) {
          break;
        }
        e locale2 = localw.d();
        double d8 = a(locale2);
        paramo.a(locale2, paramo.m(locale2), d7 - d8);
        localw.f();
        if (k != 0) {
          break label302;
        }
        if (j != 0) {
          break label300;
        }
      } while (j == 0);
      d1 += d6 - (d5 - d4);
      if (k == 0) {
        i++;
      }
    } while (j == 0);
    label300:
    label302:
    return;
  }
  
  private static final double a(e parame)
  {
    k localk = parame.g().c(f);
    if (f.o == 0) {
      if (localk == null) {
        return 0.0D;
      }
    }
    return localk.getDouble(parame);
  }
  
  public void a(o paramo, bb[] paramArrayOfbb, k paramk)
  {
    this.g.a(paramo, paramArrayOfbb, paramk);
    a(paramo, paramArrayOfbb);
  }
  
  public void a(x paramx)
  {
    this.g.a(paramx);
  }
  
  public void b(double paramDouble)
  {
    this.g.b(paramDouble);
  }
  
  public void d(double paramDouble)
  {
    this.g.d(paramDouble);
  }
  
  public void c(double paramDouble)
  {
    this.g.c(paramDouble);
  }
  
  public void a(double paramDouble)
  {
    this.g.a(paramDouble);
  }
  
  public static final class a_
    extends p
  {
    public static int c;
    
    public double getDouble(Object paramObject)
    {
      e locale = (e)paramObject;
      o localo = (o)locale.g();
      double d = localo.t(locale);
      return 0.5D * d;
    }
  }
  
  public static final class c_
    extends p
  {
    public static int c;
    
    public double getDouble(Object paramObject)
    {
      e locale = (e)paramObject;
      o localo = (o)locale.g();
      double d = localo.s(locale);
      return -0.5D * d;
    }
  }
  
  public static final class b_
    extends p
  {
    public static boolean c;
    
    public double getDouble(Object paramObject)
    {
      e locale = (e)paramObject;
      o localo = (o)locale.g();
      double d = localo.s(locale);
      return -0.5D * d;
    }
  }
  
  public static final class d_
    extends p
  {
    public static boolean c;
    
    public double getDouble(Object paramObject)
    {
      e locale = (e)paramObject;
      o localo = (o)locale.g();
      double d = localo.t(locale);
      return -0.5D * d;
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.d.m

 * JD-Core Version:    0.7.0.1

 */